package com.zhuliwei.controller;

import com.zhuliwei.domain.ResponseResult;
import com.zhuliwei.service.HomeService;
import io.swagger.annotations.Api;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 后台首页
 *
 * @author 朱力维
 * @time 2023/7/22 10:38
 **/
@RestController
@RequestMapping("/home")
@Api(tags="认证",description = "后台首页相关接口")
public class HomeController {
    @Resource
    private HomeService homeService;
    @GetMapping("/lineCount")
    public ResponseResult lineCount() {
        return ResponseResult.okResult(homeService.lineCount());
    }
}
